/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package sistemacontrol;

import java.awt.Image;
import java.net.URL;
import javax.swing.Icon;
import javax.swing.ImageIcon;

/**
 *
 * @author HOMEPC
 */
public class MenuFrame extends javax.swing.JFrame {

    /**
     * Creates new form MenuFrame
     */
    public MenuFrame() {
        initComponents();
        setExtendedState(MenuFrame.MAXIMIZED_BOTH);
        setLocationRelativeTo(null);
        
        String ima1 = "/PresentacionMenu/Imagenes/Buscar.jpg"; 
        URL url = this.getClass().getResource(ima1);
        ImageIcon icon = new ImageIcon(url);
        Icon icono = new ImageIcon(icon.getImage().getScaledInstance(BuscarButton.getWidth(), BuscarButton.getHeight(), Image.SCALE_DEFAULT));
        BuscarButton.setIcon(icono);

        String ima2 = "/PresentacionMenu/Imagenes/Usuario.jpg"; 
        URL url2 = this.getClass().getResource(ima2);
        ImageIcon icon2 = new ImageIcon(url2);
        Icon icono2 = new ImageIcon(icon2.getImage().getScaledInstance(UsuarioButton.getWidth(), UsuarioButton.getHeight(), Image.SCALE_DEFAULT));
        UsuarioButton.setIcon(icono2);
        
        String ima3 = "/PresentacionMenu/Imagenes/BuscarEmpleado.jpg"; 
        URL url3 = this.getClass().getResource(ima3);
        ImageIcon icon3 = new ImageIcon(url3);
        Icon icono3 = new ImageIcon(icon3.getImage().getScaledInstance(EmpleadoButton.getWidth(), EmpleadoButton.getHeight(), Image.SCALE_DEFAULT));
        EmpleadoButton.setIcon(icono3);
        
        String ima4 = "/PresentacionMenu/Imagenes/Instructor.png"; 
        URL url4 = this.getClass().getResource(ima4);
        ImageIcon icon4 = new ImageIcon(url4);
        Icon icono4 = new ImageIcon(icon4.getImage().getScaledInstance(OtButton.getWidth(), OtButton.getHeight(), Image.SCALE_DEFAULT));
        OtButton.setIcon(icono4);
        
        String ima5 = "/PresentacionMenu/Imagenes/Certificacion.png"; 
        URL url5 = this.getClass().getResource(ima5);
        ImageIcon icon5 = new ImageIcon(url5);
        Icon icono5 = new ImageIcon(icon5.getImage().getScaledInstance(CertificacionButton.getWidth(), CertificacionButton.getHeight(), Image.SCALE_DEFAULT));
        CertificacionButton.setIcon(icono5);
        
        String ima6 = "/PresentacionMenu/Imagenes/Inscripcion.png"; 
        URL url6 = this.getClass().getResource(ima6);
        ImageIcon icon6 = new ImageIcon(url6);
        Icon icono6 = new ImageIcon(icon6.getImage().getScaledInstance(InscripcionButton.getWidth(), InscripcionButton.getHeight(), Image.SCALE_DEFAULT));
        InscripcionButton.setIcon(icono6);
        
        String ima7 = "/PresentacionMenu/Imagenes/Pagos.jpg"; 
        URL url7 = this.getClass().getResource(ima7);
        ImageIcon icon7 = new ImageIcon(url7);
        Icon icono7 = new ImageIcon(icon7.getImage().getScaledInstance(InscripcionButton.getWidth(), InscripcionButton.getHeight(), Image.SCALE_DEFAULT));
        PagosButton.setIcon(icono7);
        
        String ima8 = "/PresentacionMenu/Imagenes/Actualizacion.jpg"; 
        URL url8 = this.getClass().getResource(ima8);
        ImageIcon icon8 = new ImageIcon(url8);
        Icon icono8 = new ImageIcon(icon8.getImage().getScaledInstance(InscripcionButton.getWidth(), InscripcionButton.getHeight(), Image.SCALE_DEFAULT));
        ActualizacionButton.setIcon(icono8);
        
//        String ima9 = "PresentacionMenu/imagenes/Movimiento.png"; 
//        URL url9 = this.getClass().getResource(ima9);
//        ImageIcon icon9 = new ImageIcon(url9);
//        Icon icono9 = new ImageIcon(icon9.getImage().getScaledInstance(InscripcionButton.getWidth(), InscripcionButton.getHeight(), Image.SCALE_DEFAULT));
//        MovimientoButton.setIcon(icono9);
    }

    /**
     * This method is called from within the constructor to initialize the form.
     * WARNING: Do NOT modify this code. The content of this method is always
     * regenerated by the Form Editor.
     */
    @SuppressWarnings("unchecked")
    // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents
    private void initComponents() {

        BuscarButton = new javax.swing.JButton();
        InscripcionButton = new javax.swing.JButton();
        PagosButton = new javax.swing.JButton();
        UsuarioButton = new javax.swing.JButton();
        CertificacionButton = new javax.swing.JButton();
        ActualizacionButton = new javax.swing.JButton();
        OtButton = new javax.swing.JButton();
        MovimientoButton = new javax.swing.JButton();
        EmpleadoButton = new javax.swing.JButton();
        jLabel1 = new javax.swing.JLabel();
        jLabel2 = new javax.swing.JLabel();
        jLabel3 = new javax.swing.JLabel();
        jLabel4 = new javax.swing.JLabel();
        jLabel5 = new javax.swing.JLabel();
        jLabel6 = new javax.swing.JLabel();
        jLabel7 = new javax.swing.JLabel();
        jLabel8 = new javax.swing.JLabel();
        jLabel9 = new javax.swing.JLabel();

        setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);

        BuscarButton.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                BuscarButtonActionPerformed(evt);
            }
        });

        InscripcionButton.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                InscripcionButtonActionPerformed(evt);
            }
        });

        PagosButton.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                PagosButtonActionPerformed(evt);
            }
        });

        UsuarioButton.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                UsuarioButtonActionPerformed(evt);
            }
        });

        CertificacionButton.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                CertificacionButtonActionPerformed(evt);
            }
        });

        ActualizacionButton.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                ActualizacionButtonActionPerformed(evt);
            }
        });

        OtButton.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                OtButtonActionPerformed(evt);
            }
        });

        MovimientoButton.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                MovimientoButtonActionPerformed(evt);
            }
        });

        EmpleadoButton.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                EmpleadoButtonActionPerformed(evt);
            }
        });

        jLabel1.setText("Buscar");

        jLabel2.setText("Usuario");

        jLabel3.setText("Empleado");

        jLabel4.setText("Instructor");

        jLabel5.setText("Certificacion");

        jLabel6.setText("Inscripcion");

        jLabel7.setText("Pagos");

        jLabel8.setText("Actualizacion");

        jLabel9.setText("Movimiento");

        javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());
        getContentPane().setLayout(layout);
        layout.setHorizontalGroup(
            layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
            .addGroup(layout.createSequentialGroup()
                .addContainerGap(87, Short.MAX_VALUE)
                .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addComponent(BuscarButton, javax.swing.GroupLayout.PREFERRED_SIZE, 55, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addGroup(layout.createSequentialGroup()
                        .addGap(10, 10, 10)
                        .addComponent(jLabel1)))
                .addGap(18, 18, 18)
                .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addComponent(UsuarioButton, javax.swing.GroupLayout.PREFERRED_SIZE, 55, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addGroup(layout.createSequentialGroup()
                        .addGap(10, 10, 10)
                        .addComponent(jLabel2)))
                .addGap(18, 18, 18)
                .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addComponent(EmpleadoButton, javax.swing.GroupLayout.PREFERRED_SIZE, 55, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(jLabel3))
                .addGap(18, 18, 18)
                .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addComponent(OtButton, javax.swing.GroupLayout.PREFERRED_SIZE, 55, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(jLabel4))
                .addGap(18, 18, 18)
                .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addComponent(jLabel5)
                    .addComponent(CertificacionButton, javax.swing.GroupLayout.PREFERRED_SIZE, 55, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addGap(18, 18, 18)
                .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addComponent(InscripcionButton, javax.swing.GroupLayout.PREFERRED_SIZE, 55, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(jLabel6))
                .addGap(18, 18, 18)
                .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addComponent(PagosButton, javax.swing.GroupLayout.PREFERRED_SIZE, 55, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addGroup(layout.createSequentialGroup()
                        .addGap(10, 10, 10)
                        .addComponent(jLabel7)))
                .addGap(18, 18, 18)
                .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(layout.createSequentialGroup()
                        .addComponent(ActualizacionButton, javax.swing.GroupLayout.PREFERRED_SIZE, 55, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addGap(25, 25, 25))
                    .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, layout.createSequentialGroup()
                        .addComponent(jLabel8)
                        .addGap(18, 18, 18)))
                .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addComponent(MovimientoButton, javax.swing.GroupLayout.PREFERRED_SIZE, 55, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(jLabel9))
                .addContainerGap(80, Short.MAX_VALUE))
        );
        layout.setVerticalGroup(
            layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, layout.createSequentialGroup()
                .addContainerGap(220, Short.MAX_VALUE)
                .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
                    .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                        .addGroup(layout.createSequentialGroup()
                            .addComponent(PagosButton, javax.swing.GroupLayout.PREFERRED_SIZE, 55, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                            .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                                .addComponent(jLabel6)
                                .addComponent(jLabel7)))
                        .addComponent(ActualizacionButton, javax.swing.GroupLayout.PREFERRED_SIZE, 55, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addComponent(InscripcionButton, javax.swing.GroupLayout.PREFERRED_SIZE, 55, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addGroup(layout.createSequentialGroup()
                            .addComponent(MovimientoButton, javax.swing.GroupLayout.PREFERRED_SIZE, 55, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                            .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                                .addComponent(jLabel9)
                                .addComponent(jLabel8))))
                    .addGroup(layout.createSequentialGroup()
                        .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addComponent(BuscarButton, javax.swing.GroupLayout.PREFERRED_SIZE, 55, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(EmpleadoButton, javax.swing.GroupLayout.PREFERRED_SIZE, 55, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                                .addComponent(CertificacionButton, javax.swing.GroupLayout.PREFERRED_SIZE, 55, javax.swing.GroupLayout.PREFERRED_SIZE)
                                .addComponent(UsuarioButton, javax.swing.GroupLayout.PREFERRED_SIZE, 55, javax.swing.GroupLayout.PREFERRED_SIZE)
                                .addComponent(OtButton, javax.swing.GroupLayout.PREFERRED_SIZE, 55, javax.swing.GroupLayout.PREFERRED_SIZE)))
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                            .addComponent(jLabel1)
                            .addComponent(jLabel2)
                            .addComponent(jLabel3)
                            .addComponent(jLabel4)
                            .addComponent(jLabel5))))
                .addGap(99, 99, 99))
        );

        pack();
    }// </editor-fold>//GEN-END:initComponents

    private void BuscarButtonActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_BuscarButtonActionPerformed
        // TODO add your handling code here:
        BuscarFrame Buscar= new BuscarFrame();
        Buscar.setVisible(true);
    }//GEN-LAST:event_BuscarButtonActionPerformed

    private void UsuarioButtonActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_UsuarioButtonActionPerformed
      
//        UsuarioFrame Usuario= new UsuarioFrame();
//        Usuario.setVisible(true);
    }//GEN-LAST:event_UsuarioButtonActionPerformed

    private void EmpleadoButtonActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_EmpleadoButtonActionPerformed
       
//        EmpleadoFrame Empleado = new EmpleadoFrame();
//        Empleado.setVisible(true);
    }//GEN-LAST:event_EmpleadoButtonActionPerformed

    private void OtButtonActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_OtButtonActionPerformed
        OtFrame Persona = new OtFrame();
        Persona.setVisible(true);
    }//GEN-LAST:event_OtButtonActionPerformed

    private void CertificacionButtonActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_CertificacionButtonActionPerformed
        CertificacionFrame Certificacion = new CertificacionFrame();
        Certificacion.setVisible(true);
    }//GEN-LAST:event_CertificacionButtonActionPerformed

    private void InscripcionButtonActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_InscripcionButtonActionPerformed
        InscripcionFrame Inscripcion = new InscripcionFrame();
        Inscripcion.setVisible(true);
    }//GEN-LAST:event_InscripcionButtonActionPerformed

    private void PagosButtonActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_PagosButtonActionPerformed
//        PagosFrame Pagos = new PagosFrame();
//        Pagos.setVisible(true);
    }//GEN-LAST:event_PagosButtonActionPerformed

    private void ActualizacionButtonActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_ActualizacionButtonActionPerformed
        ActualizarFrame Actualizar = new ActualizarFrame();
        Actualizar.setVisible(true);
    }//GEN-LAST:event_ActualizacionButtonActionPerformed

    private void MovimientoButtonActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_MovimientoButtonActionPerformed
//        MovimientoFrame Movimiento = new MovimientoFrame();
//        Movimiento.setVisible(true);
    }//GEN-LAST:event_MovimientoButtonActionPerformed

    /**
     * @param args the command line arguments
     */
    public static void main(String args[]) {
        /* Set the Nimbus look and feel */
        //<editor-fold defaultstate="collapsed" desc=" Look and feel setting code (optional) ">
        /* If Nimbus (introduced in Java SE 6) is not available, stay with the default look and feel.
         * For details see http://download.oracle.com/javase/tutorial/uiswing/lookandfeel/plaf.html 
         */
        try {
            for (javax.swing.UIManager.LookAndFeelInfo info : javax.swing.UIManager.getInstalledLookAndFeels()) {
                if ("Nimbus".equals(info.getName())) {
                    javax.swing.UIManager.setLookAndFeel(info.getClassName());
                    break;
                }
            }
        } catch (ClassNotFoundException ex) {
            java.util.logging.Logger.getLogger(MenuFrame.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);
        } catch (InstantiationException ex) {
            java.util.logging.Logger.getLogger(MenuFrame.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);
        } catch (IllegalAccessException ex) {
            java.util.logging.Logger.getLogger(MenuFrame.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);
        } catch (javax.swing.UnsupportedLookAndFeelException ex) {
            java.util.logging.Logger.getLogger(MenuFrame.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);
        }
        //</editor-fold>

        /* Create and display the form */
        java.awt.EventQueue.invokeLater(new Runnable() {
            public void run() {
                new MenuFrame().setVisible(true);
            }
        });
    }
    // Variables declaration - do not modify//GEN-BEGIN:variables
    private javax.swing.JButton ActualizacionButton;
    private javax.swing.JButton BuscarButton;
    private javax.swing.JButton CertificacionButton;
    private javax.swing.JButton EmpleadoButton;
    private javax.swing.JButton InscripcionButton;
    private javax.swing.JButton MovimientoButton;
    private javax.swing.JButton OtButton;
    private javax.swing.JButton PagosButton;
    private javax.swing.JButton UsuarioButton;
    private javax.swing.JLabel jLabel1;
    private javax.swing.JLabel jLabel2;
    private javax.swing.JLabel jLabel3;
    private javax.swing.JLabel jLabel4;
    private javax.swing.JLabel jLabel5;
    private javax.swing.JLabel jLabel6;
    private javax.swing.JLabel jLabel7;
    private javax.swing.JLabel jLabel8;
    private javax.swing.JLabel jLabel9;
    // End of variables declaration//GEN-END:variables
}
